import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
  mode: 'hash',
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: '默认',
      redirect: '/login'
    },
    {
      path: '/login',
      name: '登录',
      component: () => import('@/views/login/login.vue')
    },
    {
      path: '/home',
      name: '主页',
      component: () => import('@/views/home/home.vue')
    }
  ]
})

export default router
